<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>app</title>
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css">
    <link rel="https://cdn.bootcss.com/bootstrap-table/1.12.1/bootstrap-table.css">
    <script src="https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <script src="https://cdn.bootcss.com/bootstrap-table/1.12.1/bootstrap-table.js"></script>
    <link rel="stylesheet" href="app.css">
    <script src="app.js"></script>
    <script src="appsearch.js"></script>
</head>
<body>
    <div class="series">
        <!-- 面包屑 -->
        <nav aria-label="breadcrumb">
            <ol class="breadcrumb">
                <li class="breadcrumb-item active"><a href="#">版本列表</a></li>
            </ol>
        </nav>
    </div>
    <!-- 内容 -->
    <div class="contents">
        <!-- 搜索栏 -->
        <div class="search">
            <div class="check">
                <form class="bs-example bs-example-form" role="form">
                    <div class="input-group">
                        <span class="input-group-addon">版本id</span>
                        <input id="banbenid" type="text" class="form-control" placeholder="1">
                    </div>
                    <div class="input-group">
                        <span class="input-group-addon">版本号</span>
                        <input id="banbennumber" type="text" class="form-control" placeholder="v1.01">
                    </div>
                    <div class="input-group">
                        <span class="input-group-addon">app平台</span>
                        <select name="dealer_id" id="appPin" class="selectpicker show-tick form-control"
                            data-width="98%" data-first-option="false" title='app平台' required data-live-search="true">
                            <option value="1">Android</option>
                            <option value="2">iOS</option>
                        </select>
                    </div>
                    <div class="input-group">
                        <span class="input-group-addon">app使用对象</span>
                        <select name="dealer_id" id="appDui" class="selectpicker show-tick form-control"
                            data-width="98%" data-first-option="false" title='app使用对象' required data-live-search="true">
                            <option value="1">用户端App</option>
                            <option value="2">商户端App</option>
                        </select>
                    </div>
                    <!-- 新增 -->
                    <button type="button" class="btn btn-warning btn-sm add" onclick="addApp()">
                        新增 <span class="glyphicon glyphicon-pencil"></span>
                    </button>
                    <button type="button" class="btn btn-warning btn-sm" onclick="searchApp()">
                        搜索 <span class="glyphicon glyphicon-search"></span>
                    </button>
                    
                    
                </form>
            </div>
            <table class="table table-bordered table-hover" id="appTable">
            </table>
        </div>
                  <!-- 添加版本 -->
                  <div class="addApp">
                    <form role="form">
                      <div class="form-group">
                          <span>*</span><label for="usr"> App 平 台 :</label>
                          <select name="dealer_id" id="addplatformFlag" class="selectpicker show-tick form-control"
                              data-width="98%" data-first-option="false" title='app平台' required data-live-search="true">
                              <option value="1">Android</option>
                              <option value="2">iOS</option>
                          </select>
                          <span>*</span><label for="usr"> App 使 用 对 象 :</label>
                          <select name="dealer_id" id="addrole" class="selectpicker show-tick form-control"
                              data-width="98%" data-first-option="false" title='app使用对象' required data-live-search="true">
                              <option value="1">用户端App</option>
                              <option value="2">商户端App</option>
                          </select>
      
                          <span>*</span><label for="usr"> 版 本 号 :</label>
                          <input type="text" class="form-control" id="addver" placeholder="添加为空值，不获取">
      
                          <span>*</span><label for="usr"> Version Code :</label>
                          <input type="text" class="form-control" id="addversionCode" placeholder="添加为空值，不获取">
      
                          <span>*</span><label for="usr"> 下 载 地 址 :</label>
                          <input type="text" class="form-control" id="adddownUrl" placeholder="添加为空值，不获取">
      
                          <span>*</span><label for="usr"> 更新日志（条数之间用分号隔开） :</label>
                          <textarea class="form-control" rows="3" id="addupdateLog"></textarea>
      
                          <button type="button" class="btn btn-default" onclick="addsaveApp()">保存</button>
                          <button type="button" class="btn btn-default" onclick="backApp()">返回</button>
                      </div>
                    </form>
                </div>
                <!-- 编辑版本 -->
                <div class="editApp">
                  <form role="form">
                    <div class="form-group">
                        <span>*</span><label for="usr"> App 平 台 :</label>
                        <select name="dealer_id" id="editplatformFlag" class="selectpicker show-tick form-control"
                            data-width="98%" data-first-option="false" title='app平台' required data-live-search="true">
                            <option value="1">Android</option>
                            <option value="2">iOS</option>
                        </select>
                        <span>*</span><label for="usr"> App 使 用 对 象 :</label>
                        <select name="dealer_id" id="editrole" class="selectpicker show-tick form-control"
                            data-width="98%" data-first-option="false" title='app使用对象' required data-live-search="true">
                            <option value="1">用户端App</option>
                            <option value="2">商户端App</option>
                        </select>
      
                        <span>*</span><label for="usr"> 版 本 号 :</label>
                        <input type="text" class="form-control" id="editver">
      
                        <span>*</span><label for="usr"> Version Code :</label>
                        <input type="text" class="form-control" id="editversionCode">
      
                        <span>*</span><label for="usr"> 下 载 地 址 :</label>
                        <input type="text" class="form-control" id="editdownUrl">
      
                        <span>*</span><label for="usr"> 更新日志（条数之间用分号隔开） :</label>
                        <textarea class="form-control" rows="3" id="editupdateLog"></textarea>
                        <!-- 隐藏ID -->
                        <input type="hidden" class="form-control" id="appid">
                        <button type="button" class="btn btn-primary" onclick="editsaveApp()">保存</button>
                        <button type="button" class="btn btn-primary" onclick="backApp()">返回</button>
                    </div>
                  </form>
              </div>
        <!-- 模态框 -->
        <!-- 模态框（Modal） -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-backdrop="static">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title" id="myModalLabel">
                    admin.52carlife.com显示
                </h4>
            </div>
            <div class="modal-body">
                <span id="modal-input">确认停用</span>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭
                </button>
                <button id="btn_ok" type="button" class="btn btn-primary">
                    提交更改
                </button>
            </div>
        </div>
    </div>
</div>
</body>
</html>